Implement default help-echo for mode line.
authorChong Yidong <cyd@gnu.org>
Sun, 3 Jun 2012 09:03:23 +0000 (17:03 +0800)
committerChong Yidong <cyd@gnu.org>
Sun, 3 Jun 2012 09:03:23 +0000 (17:03 +0800)
commitd2c80924ae875f43d4493f357799cb4b521016c2
tree7f0013dea6db077caed42a327f7a267f92bfed85
parentab469a15d97129741027a76223b5c01ceca714d6
Implement default help-echo for mode line.

* lisp/bindings.el: Remove explicit help-echo from format-mode-line.
(mode-line-front-space, mode-line-end-spaces)
(mode-line-misc-info): New variables.
(mode-line-modes, mode-line-position): Move the default value to
the variable definition.
(mode-line-default-help-echo): New defcustom.

* src/buffer.c (buffer_local_value_1): New function, split from
Fbuffer_local_value; can return Qunbound.
(Fbuffer_local_value): Use it.
(Vmode_line_format): Docstring tweaks.

* src/xdisp.c (calc_pixel_width_or_height): Use Fbuffer_local_value.
(note_mode_line_or_margin_highlight): If there is no help echo,
use mode-line-default-help-echo.  Handle the case where the mouse
position is past the end of the mode line string.

* doc/lispref/modes.texi (Mode Line Data): Use "mode line construct"
terminology for consistency.
doc/lispref/ChangeLog
doc/lispref/modes.texi
lisp/ChangeLog
lisp/bindings.el
src/ChangeLog
src/buffer.c
src/buffer.h
src/xdisp.c